package com.lw.ssm.pojo;


import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import org.springframework.util.StringUtils;

public class Course implements CheckNull{

  @JsonProperty(value = "cId")
  private long cId;

  @JsonProperty(value = "cName")
  private String cName;

  @JsonIgnore
  @Override
  public boolean isEmpty() {
    return !StringUtils.hasText(cName);
  }

  public long getCId() {
    return cId;
  }

  public void setCId(long cId) {
    this.cId = cId;
  }


  public String getCName() {
    return cName;
  }

  public void setCName(String cName) {
    this.cName = cName;
  }

  @Override
  public String toString() {
    return "Course{" +
            "cId=" + cId +
            ", cName='" + cName + '\'' +
            '}';
  }
}
